var MessageBox = React.createClass({
    getInitialState:function(){
        return {
            isGet: '我会被调用吗',
        }
    },
    render:function(){
        return(
            <div>
                <h1>你好世界{this.state.isGet}</h1>)
                <SubMessage message='直接传递的消息'/>
            </div>
        )
    }
});
var SubMessage = React.createClass({
    getDefaultProps:function(){
        return{
            message:'默认的子消息',
        }
    },
    render:function () {
        var msg = this.props.message;
        return(
            <div>{msg}</div>
        )
    }
})

React.render(<MessageBox/>,
    document.body,
    function(){
        console.log('渲染完成')
    }
)